package com.tianji.promotion.config;

import io.seata.rm.datasource.undo.UndoLogParser;
import io.seata.rm.datasource.undo.parser.KryoUndoLogParser;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置Kryo 序列化：解决了 Jackson 序列化问题
 * 1.SeataConfig
 * 2.yml配置
 * 3.导入依赖
 * @author Covey
 */
@Configuration
public class SeataConfig {
    
    @Bean
    public UndoLogParser undoLogParser() {
        return new KryoUndoLogParser();
    }
}